from main.练习.lianxi12.Page.Page import Page
from selenium.webdriver.common.by import By
from time import sleep
class Page2(Page):
    # 点击我的酒仙
    wodejiuxian_loc=(By.XPATH,'/html/body/div[2]/div/div[2]/ul/li[1]/div[1]/a')
    def wodejiuxian(self):
        self.click(self.wodejiuxian_loc)
    # 页面翻动
    def switch_window_l(self):
        self.switch_window()
    # 进入我的酒仙后点击差
    uGuideClose_loc=(By.CLASS_NAME,'uGuideClose')
    def uGuideClose(self):
        self.click(self.uGuideClose_loc)
    # 向下滑动
    def execute_script_L(self):
        self.execute_script(1000)
    # 点击收货地址
    shouhuodiz_loc=(By.XPATH,'/html/body/div[4]/div[1]/div[2]/div[4]/a[3]/span')
    def shouhuodiz(self):
        self.click(self.shouhuodiz_loc)
    # 下滑
    def execute_script_L2(self):
        self.execute_script(400)
    # 输入收货人
    consignee_loc=(By.NAME,'consignee')
    def consignee(self):
        self.send_keys(self.consignee_loc,'shuai')
    # 导入Page
    def jiuxianwang_loc2(self):
        self.jiuxianwang_loc()